import * as THREE from "three";


function createAmbientLight(brightness) {
  const light =  new THREE.AmbientLight()
  light.intensity = (brightness || 1) *Math.PI;
  return light;
}


export default function createLight({lightType, brightness/*, envPreset*/}) {
  if(lightType === '3d') {
    return createAmbientLight(brightness)
  }else if(lightType === 'env') {
    console.log('env')
  }
}
